package com.water_work_form.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * <p>
 * 基础表——项目方法限值依据
 * </p>
 *
 * @author xuke
 * @since 2023-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "basic_restriction")
@ApiModel(value="BasicRestriction对象", description="基础表——项目方法限值依据")
public class BasicRestriction implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "项目")
    @Column(unique = true)
    private String name;

    @ApiModelProperty(value = "出厂水限值")
    private String checkContent;

    @ApiModelProperty(value = "标准方法依据")
    private String standardBasis;

    @ApiModelProperty(value = "分析方法")
    private String analysisMethod;


    @Override
    public String toString() {
        return "{\"name\":\"" + name + "\",\"checkContent\":\"" + checkContent + "\",\"standardBasis\":\"" + standardBasis + "\",\"analysisMethod\":\"" + analysisMethod + "\"}";
    }

}
